package com.service;

import com.entity.MaterialType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.utils.PageObject;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author aiou
 * @since 2025-06-12
 */
public interface MaterialTypeService {

    //物料类别：分页查询
    PageObject<MaterialType> list(PageObject pageObject);

    //物料类别：根据物料编码获取物料类型
    MaterialType getOne(String materialTypeCode);

    //物料类别：新增/修改物料
    boolean save(MaterialType materialType);
    //物料类别：新增/修改物料
    boolean updateById(MaterialType materialType);

    //物料类别：删除物料
    boolean removeById(Integer id);

    //物料类别：查询所有
    List<MaterialType> list();
}
